package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("basic_meter_data")
@ApiModel("仪表数据定义")
public class BasicMeterData extends BasePojo{

    @ApiModelProperty("主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "数据定义:电压，水压，温度" )
    @TableField(value = "dataDefine")
    private String dataDefine;

    @ApiModelProperty(value = "数据定义中文名称" )
    @TableField(value = "dataDefineCn")
    private String  dataDefineCn;

    @ApiModelProperty(value = "单位:V,A,MPa" )
    private String  unit;

    @ApiModelProperty(value = "阈值上限" )
    @TableField(value = "upperThreshold")
    private String upperThreshold;

    @ApiModelProperty(value = "阈值下限" )
    @TableField(value = "lowerThreshold")
    private String lowerThreshold;

    @ApiModelProperty(value = "度数范围" )
    private String ranges;

    @ApiModelProperty(value = "精度" )
    private String precisions;

    @ApiModelProperty(value = "仪表id" )
    @TableField(value = "meterId")
    private Integer  meterId;

    @ApiModelProperty(value = "排序号" )
    @TableField(value = "channelNo")
    private Integer channelNo;

//    @ApiModelProperty(value = "报表统计" )
//    //@JsonIgnore
//    @TableField(exist=false)
//    List<MeterCountReportVo> meterCountReports;
}
